<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:p="http://primefaces.org/ui"
	template="/templates/template.xhtml">

	<ui:define name="body">
		<h:form prependId="false">

			<p:fieldset legend="Curso">
				<h:panelGrid columns="2" border="0" columnClasses="coluna20,coluna80" width="100%">
					<h:outputLabel value="Título:" styleClass="icoObrigatorio" />
					<p:inputText value="Contabilidade" id="nome" size="50" maxlength="255" />
					<h:outputLabel value="Área:" styleClass="icoObrigatorio" />
					<p:selectOneMenu effect="fade" style="width:280px;">
						<f:selectItem itemLabel="Contabilidade Aplicada Ao Setor Público" itemValue="" />
					</p:selectOneMenu>
					<h:outputLabel value="Local:" styleClass="icoObrigatorio" />
					<p:selectOneMenu effect="fade" style="width:280px;">
						<f:selectItem itemLabel="Centro ESAF/RJ" itemValue="" />
						<f:selectItem itemLabel="Centro ESAF/DF" itemValue="" />
					</p:selectOneMenu>

				</h:panelGrid>

				<h:panelGrid columns="4" border="0" columnClasses="coluna20,coluna15,coluna5,coluna80" width="100%">

					<h:outputLabel value="Data Realização:" styleClass="icoObrigatorio" />
					<h:panelGrid columns="2" cellpadding="0" cellspacing="0">
						<p:calendar locale="pt" pattern="dd/MM/yyyy" value="#{apresentacao.date1}" navigator="true" maxlength="10"
							size="15" readOnlyInputText="true" mode="popup" showOn="button" />
					</h:panelGrid>
					<h:outputText value="Até" />
					<h:panelGrid columns="2" cellpadding="0" cellspacing="0">
						<p:calendar locale="pt" pattern="dd/MM/yyyy" value="#{apresentacao.date2}" navigator="true" maxlength="10"
							size="15" readOnlyInputText="true" mode="popup" showOn="button" />
					</h:panelGrid>

					<h:outputLabel value="Período Inscrição:" styleClass="icoObrigatorio" />
					<h:panelGrid columns="2" cellpadding="0" cellspacing="0">
						<p:calendar locale="pt" pattern="dd/MM/yyyy" value="#{apresentacao.date1}" navigator="true" maxlength="10"
							size="15" readOnlyInputText="true" mode="popup" showOn="button" />
					</h:panelGrid>
					<h:outputText value=" " />
					<h:outputText value=" " />
				</h:panelGrid>
				<h:panelGrid columns="1" border="0" width="100%">

					<p:selectOneRadio id="options" layout="pageDirection" value="1">
						<f:selectItem itemLabel="Por Data de Fim de Inscrição" itemValue="1" />
						<f:selectItem itemLabel="Determinada pelo Gestor" itemValue="2" />
					</p:selectOneRadio>

				</h:panelGrid>

				<h:panelGrid columns="2" border="0" columnClasses="coluna20,coluna80" width="100%">
					<h:outputLabel value="Data Término da Inscrição" styleClass="icoObrigatorio" />
					<h:panelGrid columns="2" cellpadding="0" cellspacing="0">
						<p:calendar locale="pt" pattern="dd/MM/yyyy" value="#{apresentacao.date2}" navigator="true" maxlength="10"
							size="15" readOnlyInputText="true" mode="popup" showOn="button" />
					</h:panelGrid>
					<h:outputLabel value="Número de Vagas:" styleClass="icoObrigatorio" />
					<p:inputText value="50" size="10" maxlength="255" />
				</h:panelGrid>

				<h:panelGrid columns="2" border="0" columnClasses="coluna50,coluna50" width="100%">
					<p:fieldset legend="UF">
						<h:panelGrid columns="1" border="0" width="100%">
							<h:panelGrid columns="3" border="0" columnClasses="coluna20,coluna5,coluna75" width="100%">
								<h:outputLabel value="UF" styleClass="icoObrigatorio" />
								<p:inputText value="DF" size="10" maxlength="255" />
								<p:commandButton value="Adicionar" />
							</h:panelGrid>
							<p:dataTable var="lista" value="#{apresentacao.ufs}" style="width:400px;">
								<p:column headerText="UF">
									<h:outputText value="#{lista}" />
								</p:column>
								<p:column headerText="Ação">
									<h:graphicImage library="design/imagem" name="icone-excluir.png" />
								</p:column>
							</p:dataTable>
						</h:panelGrid>
					</p:fieldset>
					<p:fieldset legend="Município">
						<h:panelGrid columns="1" border="0" width="100%">
							<h:panelGrid columns="3" border="0" columnClasses="coluna20,coluna5,coluna75" width="100%">
								<h:outputLabel value="Município" styleClass="icoObrigatorio" />
								<p:inputText value="Brasília" size="10" maxlength="255" />
								<p:commandButton value="Adicionar" />
							</h:panelGrid>
							<p:dataTable var="lista" value="#{apresentacao.municipios}" style="width:400px;">
								<p:column headerText="Município">
									<h:outputText value="#{lista}" />
								</p:column>
								<p:column headerText="Ação">
									<h:graphicImage library="design/imagem" name="icone-excluir.png" />
								</p:column>
							</p:dataTable>
						</h:panelGrid>
					</p:fieldset>
				</h:panelGrid>


				<h:panelGrid columns="3" border="0" columnClasses="coluna33,coluna33,coluna33" width="100%">
					<p:fieldset legend="Lista de Espera" style="width:300px;">
						<p:selectOneRadio layout="pageDirection" value="1">
							<f:selectItem itemLabel="Lista de Espera por Região" itemValue="1" />
							<f:selectItem itemLabel="Lista de Espera Geral" itemValue="2" />
							<f:selectItem itemLabel="Não Possui Lista de Espera" itemValue="3" />
						</p:selectOneRadio>
					</p:fieldset>
					<p:fieldset legend="Homologação" style="width:300px;">
						<p:selectOneRadio layout="pageDirection" value="1">
							<f:selectItem itemLabel="Confirmação de Pagamento" itemValue="1" />
							<f:selectItem itemLabel="Confirmação do Chefe" itemValue="2" />
							<f:selectItem itemLabel="Confirmação Via GRU" itemValue="3" />
							<f:selectItem itemLabel="Confirmação Por Nota de Empenho" itemValue="4" />
						</p:selectOneRadio>
					</p:fieldset>
					<p:fieldset legend="Esfera de Governo" style="width:300px;">
						<p:selectOneRadio layout="pageDirection" value="1">
							<f:selectItem itemLabel="Federal" itemValue="1" />
							<f:selectItem itemLabel="Estadual" itemValue="2" />
							<f:selectItem itemLabel="Municipal" itemValue="3" />
							<f:selectItem itemLabel="Nenhuma" itemValue="4" />
						</p:selectOneRadio>
					</p:fieldset>
				</h:panelGrid>
				<br/>
				<p:fieldset legend="Dados do Aluno Obrigatório" >
					<p:dataTable var="lista" value="#{apresentacao.dados}" style="width:100%;">
						<p:column headerText="Obrigatório">
							<h:outputText value="#{lista}" />
						</p:column>
						<p:column headerText="Obrigatório">
							<p:selectBooleanCheckbox />
						</p:column>
						<p:column headerText="Visível">
							<p:selectBooleanCheckbox />
						</p:column>
					</p:dataTable>
				</p:fieldset>
				<br />
				<div align="center">
					<p:commandButton value="Salvar" />
					<p:spacer width="10" />
					<p:commandButton value="Limpar" />
				</div>
			</p:fieldset>
		</h:form>
	</ui:define>
</ui:composition>